//路由配置信息

export default [
    //重定向
    {
      path:'/',
      redirect:'/home',
    },
    {
      path:"/home",
      component:()=>import('@/views/Home/Home'),
      meta:{show:true}
    }
    ,
    {
      path:"/search/:keyword? ",
      component:()=>import('@/views/Search/Search'),
      meta:{show:true},
      // 对象形式传参需要起名
      name:'search'
    }
    ,
    {
      path:"/login",
      component:()=>import('@/views/Login/Login'),
      meta:{show:false}
    }
    ,
    {
      path:"/register",
      component:()=>import('@/views/Register/Register'),
      meta:{show:false}
    },
    {
      path:"/detail/:skuid",
      component:()=>import('@/views/Detail/Detail/index')
    },
    {
      path:"/addcartsuccess",
      name:'addcartsuccess',
      component:()=>import('@/views/AddCartSuccess/AddCartSuccess'),
      meta: {isShow: true}
    },
    {
      path:"/shopcart",
      name:'shopcart',
      component:()=>import('@/views/ShopCart/index'),
      meata:{isShow: true}
    }
  ]